Repository navigation
FROMLIST: usb: typec: ucsi_ccg: Add cypd6129/cypd6229 support and CC orientation sensing via GPIO - #1561
Conversation
…upport Extend the binding to cover the Cypress cypd6129 and cypd6229 dual Type-C PD controllers, which share the same I2C-controlled interface as the cypd4226. Also add pinctrl and wakeup-source properties, and relax reg/interrupts constraints that only applied to cypd4226. Link: https://lore.kernel.org/all/20261124-ucsi-ccg-cc-orientation-v3-1-73cd114e5393@oss.qualcomm.com/ Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Akash Kumar <akakum@qti.qualcomm.com> Signed-off-by: Akash Kumar <akash.kumar@oss.qualcomm.com>
Add compatible strings for the Cypress cypd6129 and cypd6229 dual Type-C PD controllers to the of_device_id match table, matching the corresponding dt-bindings update. Link: https://lore.kernel.org/all/20261124-ucsi-ccg-cc-orientation-v3-2-73cd114e5393@oss.qualcomm.com/ Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Akash Kumar <akakum@qti.qualcomm.com> [submitter: cypress,cypd6129 entry already present on this branch (commit 328388a); only added the missing cypd6229 entry] Signed-off-by: Akash Kumar <akash.kumar@oss.qualcomm.com>
…roperty Add the optional orientation-gpios property, used to sense the CC orientation of each Type-C connector on boards where the CCGx chip has no HPI register exposing CC polarity. Entries are ordered by connector number; an entry may be left as <0> for connectors with no sense line. Link: https://lore.kernel.org/all/20261124-ucsi-ccg-cc-orientation-v3-3-73cd114e5393@oss.qualcomm.com/ Signed-off-by: Akash Kumar <akash.kumar@oss.qualcomm.com>
The CCGx chip has no HPI register exposing CC polarity, so there is no way for the driver to report typec_cap.orientation_aware or call typec_set_orientation() from UCSI status alone. On boards that wire a sense line to the connector, pick it up via the orientation-gpios property and use it to report orientation. Acquire an optional "orientation" GPIO for each connector child node in ucsi_ccg_probe(), indexed by the connector's reg property. Add update_connector and connector_status ops that mark the connector orientation_aware when a GPIO is present, and drive typec_set_orientation() from the GPIO value while connected. Link: https://lore.kernel.org/all/20261124-ucsi-ccg-cc-orientation-v3-4-73cd114e5393@oss.qualcomm.com/ Signed-off-by: Akash Kumar <akash.kumar@oss.qualcomm.com> [submitter: ucsi_ccg.c has diverged substantially from upstream on this branch (HPIv2/CCG6 flash-update rework). Resolved conflicts in struct ucsi_ccg (kept existing force_once/updating/last_cmd_sent fields alongside the new orientation_gpio array) and in ucsi_ccg_ops (kept existing op entries, added update_connector and connector_status). No functional change versus the posted patch] Signed-off-by: Akash Kumar <akash.kumar@oss.qualcomm.com>
… schema cypress,cypd6129.yaml (commit b9a34d2, "FROMLIST: dt-bindings: usb: Add Cypress cypd6129/cypd6229 Type-C controller") was an earlier, standalone take on describing these controllers. The posted v3 series instead folds cypd6129/cypd6229 support directly into cypress,cypd4226.yaml, which now declares the same compatible strings and is a strict superset of the dropped schema (same reg/interrupts/ pinctrl/wakeup-source/connector properties). Keeping both produces a "Duplicate compatible" warning from the dtschema tooling. All current DT users (shikra-cqm-evk, shikra-cqs-evk, shikra-iqs-evk, talos-lyra-evk-som) use "cypress,cypd6129" or "cypress,cypd6229", "cypress,cypd6129", both still valid against cypress,cypd4226.yaml. Signed-off-by: Akash Kumar <akakum@qti.qualcomm.com> Signed-off-by: Akash Kumar <akash.kumar@oss.qualcomm.com>
…for usb1 port The CYPD6229 PD controller has no HPI register exposing CC polarity, so the usb1 (usb_1/QMP-SS-connected) Type-C port on IQS has no way to report orientation through typec_set_orientation() from UCSI status alone. Since this is the SuperSpeed-capable port, correct orientation reporting matters for lane polarity, so IQS wires a board-level CC-sense line for it to TLMM GPIO90. CQM and CQS get CC orientation from their TPMS instead, so they don't need this property. Add orientation-gpios to the typec@40 node, using the ucsi_ccg CC-orientation-sensing support added by: https://lore.kernel.org/all/20261124-ucsi-ccg-cc-orientation-v3-0-73cd114e5393@oss.qualcomm.com/ typec@40 has two connectors on IQS; the orientation-gpios list is ordered by connector reg, so the entry for connector@0 (usb0, HS-only) is left as <0> since that port has no sense line wired. Link: https://lore.kernel.org/all/20261126104201.1613183-3-akash.kumar@oss.qualcomm.com/ Signed-off-by: Akash Kumar <akash.kumar@oss.qualcomm.com>
…-C ports Add orientation-gpios to the typec@40 node so CC orientation can be read for both connectors: connector@0 is USB-HS-only, so it gets the <0> placeholder, while connector@1 reports orientation via TLMM GPIO104. GPIO104 was already used for the carrier board's DP hot-plug-detect pin, so move dp0-connector's hpd-gpios to GPIO80 to free it up. Link: https://lore.kernel.org/all/20261126121140.1716190-1-akash.kumar@oss.qualcomm.com/ Signed-off-by: Akash Kumar <akash.kumar@oss.qualcomm.com> [submitter: This tree already carries an earlier (pre-v5) version of this series' connector wiring, squashed in commit 548b026 ("FROMLIST: arm64: dts: qcom: talos-lyra-evk: Wire up CYPD6129 USB Type-C ports"). v5's connector@0/connector@1 relocation out of talos-lyra-evk-som.dtsi into talos-lyra-evk.dts, and its sbu-mux select-gpios/orientation-switch cleanup, are unrelated carrier-board restructuring not needed here, so only the orientation-gpios addition (and the GPIO104 conflict it creates with the existing DP hot-plug-detect pin) is picked up. GPIO104 is freed by moving dp0-connector's hpd-gpios to GPIO80 directly, since this tree wires DP hot-plug-detect via a plain hpd-gpios property rather than a dedicated tlmm pinctrl state.]
|
Merge Check Failed: No Change Task Found No associated change tasks found for CR 4700925 on any of the following entities: Entities:
CR: 4700925 Please ensure the CR has a change task associated with at least one of the entities for this branch. |
|
topic branch of usb is closed as of now, will push and merge once ready |
PR #1561 — validate-patchPR: #1561
Final Summary
|
PR #1561 — checker-log-analyzerPR: #1561
Detailed report: Full report
|
This series adds support for the Cypress cypd6129/cypd6229 dual
Type-C PD controllers (same I2C-controlled interface as cypd4226) to
the dt-bindings and ucsi_ccg driver, plus an optional
orientation-gpios property so boards without an HPI CC-polarity
register can still report Type-C connector orientation to the typec
class through typec_set_orientation().
Link: https://lore.kernel.org/all/20261124-ucsi-ccg-cc-orientation-v3-0-73cd114e5393@oss.qualcomm.com/
CRs-Fixed: 4700925